function getHost() {
    const protocol = location.protocol;
    const host = location.host;
    const url = `${protocol}//${host}`;
    return url;
}

window.__HFIOTMANAGE__ = {
    // api 服务
    API: {
        url: getHost(), // 服务地址
        mode: "auc", // 服务模式(应用名称) dcs 设备连接
        protocol: "https" //  启用https wss
    },
    FACE: {
        url: getHost(), // 服务地址
        mode: "api"
    },
    APIDOCTOR: {
        url: getHost(),
        mode: "doctorproxy"
    },
    APITASK: {
        url: getHost(),
        mode: "doctorproxy"
    }
};
window.__SETTINGS__ = {
    layoutTitle: "云端数据中心",
    systemTitle: "云端数据中心",
    // doctorNursingWritUrl: "http://10.150.1.88:8080/report/Report-ResultAction.do?reportId=REPORT172222181647863623596&loginname=admin&token=SGlmbHlfMjAyNA==",
    doctorNursingWritUrl: "http://10.150.1.88:8080/report/Report-ResultAction.do?reportId=REPORT173329903204080416961&loginname=admin&token=SGlmbHlfMjAyNA==",
    // 体征值组件socket地址
    wsUrl: "ws://10.150.2.63:2407",
    // 波形组件地址
    waveUrl: "http://10.150.2.63/c_bus_module/waves",
    // 消息提示地址
    msgUrl: "ws://10.150.2.63:2406/ict/nur",
    pollingTime: 600000,
    standard: "2019",
    authorUrl: `${location.protocol}//${location.host}/proxyAuthor`,
    printUrl: "http://127.0.0.1:19063/print/wristband",
    // iatUrl: "ws://172.220.0.105:57080/aimed/v1/saber/iat/ws",
    iatUrl: "ws://healthai.iflyhealth.com:1028/aimed/v1/saber/iat/ws",
    newUrl:`http://10.150.6.9/lis/#/ssologin?redirectMenuCode=1023&roleCode=D&grant_type=client_credentials&client_id=his&open_name=zhangwenli&scope_id=ICT&subHospCode=&paTypeCode=&deptAttributeCode=&deptCode=A08A00A00A01A01A01&paNo=20241120171645431&userCode=zhangwenli&userName=张文莉&deptName=重症区`,
    iotUrl: "http://10.150.6.9:9882"
};
